package com.dz.service;

import com.dz.bean.Transaction;
import com.dz.bean.Work;
import com.dz.bean.dto.TransactionGuideRankDTO;
import com.dz.bean.dto.TransactionTrendDTO;
import com.dz.bean.dto.TransactionVisitorDistributionDTO;
import com.dz.util.Page;

import java.util.List;

public interface TransactionService {
    Transaction add(Transaction transaction);

    int delete(Integer id);

    //Transaction edit(Transaction transaction);

    Transaction findById(Integer id);

    List<Transaction> all(Transaction transaction);

    void page(Page page, Transaction transaction);

    List<Work> find(Integer guideId);

    // 获取交易趋势数据
    List<TransactionTrendDTO> getTransactionTrendData(Integer days);

    // 获取地陪收入排行数据
    List<TransactionGuideRankDTO> getGuideRankData();

    // 获取游客消费分布数据
    List<TransactionVisitorDistributionDTO> getVisitorDistributionData();
}
